
function todoReducer(preState = [], action = {}) {
    const { type, newTodo, id } = action
    switch (type) {
        case 'addTodo':
            console.log('addTodo');
            return preState;
        default:
            return preState
    }
}

export default todoReducer